CC=gcc
TARGET=STM32server
OBJ=STM32server.o queueserver.o

CCLAGS=-c -Wall
INCLUDE = cJSON.h STM32server.h queueserver.h

$(TARGET):$(OBJ)
	$(CC) $^ -o $@   -lpthread
%.o:%.c
	$(CC)  $(CCLAGS) $<  -o $@ 

.PHONY:clean
clean:
	rm *.o  -f $(TARGET)
